//
//  CoreDataManager.h
//  封装
//
//  Created by boleguigu_dev1 on 16/5/4.
//  Copyright © 2016年 boleguigu_dev1. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface CoreDataManager : NSObject

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

+(CoreDataManager *) sharedCoreDataManager;
@end
